package cirno.open.api.utils;

import cn.hutool.core.util.RandomUtil;
import cn.hutool.crypto.digest.MD5;

public final class SignUtils {


    /**
     * 根据认证和密钥生成签名
     * @param accessKey 认证
     * @param secretKey 密钥
     * @return 签名
     */
    public static String getSign(String accessKey, String secretKey) {
        return MD5.create().digestHex(accessKey + '.' + secretKey + RandomUtil.randomString(10));
    }
}
